package com.example.dmdomain.entity;

import lombok.Data;
import org.springframework.data.jpa.domain.support.AuditingEntityListener;

import javax.persistence.*;

@Data
@Entity
@EntityListeners(AuditingEntityListener.class)
@Table(name = "chat_history")
public class ChatHistory {
    @Id
    @Column(name = "id")
    private String id;
    /**
     * 会话id
     */
    @Column(name = "session_id")
    private String sessionId;
    /**
     * 请求id
     */
    @Column(name = "request_id")
    private String requestId;
    /**
     * 会话时间
     */
    @Column(name = "session_time")
    private String sessionTime;
    /**
     * 文件内容
     */
    @Column(name = "message")
    private String message;
}
